﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Diagnostics.CodeAnalysis;
using Swimj.ApplicationLib.Entities;

namespace DataServer.ApplicationLib.Entities
{
    [Table("DS_DATASOURCE")]
    public class DataSourceEntity : AuditableEntity
    {
        public Guid Id { get; set; }

        [NotNull] public string? SourceCode { get; set; }

        [NotNull] public string? SourceName { get; set; }

        public Guid? DatabaseId { get; set; }

        public string? DatabaseName { get; set; }

        public string? DatabaseObjectType { get; set; }

        public string? DatabaseObject { get; set; }

        public string? DynamicSearchText { get; set; }

        public int Sort { get; set; }

        public string? Description { get; set; }
    }
}